import request from '@/utils/request'


//删除招聘信息
export function deletePost(id) {
  return request({
    url:'/jms/jmsPost/delete/'+ id,
    method:'get',
  })
}

//批量删除招聘信息
export function deleteByBatch(ids) {
  return request({
    url:'/jms/jmsPost/deleteByBatch',
    method:'post',
    data:ids
  })
}

//修改招聘信息
export function update(data) {
  return request({
    url:'/jms/jmsPost/update',
    method:'post',
    data:data
  })
}

//(网站前台)获取招聘信息列表
  export function getPostList(data) {
  return request({
    url:'/jms/jmsPost/getPostList',
    method:'post',
    data:data
  })
}



//(网站前台)分类获取招聘数据
export function getPostListByOrder(data) {
  return request({
    url:'/jms/jmsPost/getPostListByOrder',
    method:'post',
    data:data
  })
}

//（网站前台）根据ID获取招聘数据详情
export function getPostDetailById(id){
  return request({
    url:'/jms/jmsPost/getPostDetailById/'+id,
    method:'get',
  })
}



//根据公司ID查询公司招聘信息
export function findCompanyPost(data) {
  return request({
    url:'/jms/jmsPost/findCompanyPost',
    method:'post',
    data:data
  })
}

//新增招聘信息
export function save(data) {
  return request({
    url:'/jms/jmsPost/save',
    method:'post',
    data:data
  })
}


//根据ID查询招聘信息
export function findById(id) {
  return request({
    url:'/jms/jmsPost/findById/'+id,
    method:'get'
  })
}


//根据ID查询招聘信息
export function findByPage(data) {
  return request({
    url:'/jms/jmsPost/findByPage',
    method:'post',
    data:data
  })
}










